package com.ztmg.water.mapper.apartment;

import com.ztmg.water.dto.apartment.ApartmentFloorDTO;
import com.ztmg.water.model.apartment.ApartmentFloor;
import com.ztmg.water.model.apartment.ApartmentFloorExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface ApartmentFloorMapper {
    long countByExample(ApartmentFloorExample example);

    int deleteByExample(ApartmentFloorExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(ApartmentFloor record);

    int insertSelective(ApartmentFloor record);

    List<ApartmentFloor> selectByExample(ApartmentFloorExample example);

    ApartmentFloor selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") ApartmentFloor record, @Param("example") ApartmentFloorExample example);

    int updateByExample(@Param("record") ApartmentFloor record, @Param("example") ApartmentFloorExample example);

    int updateByPrimaryKeySelective(ApartmentFloor record);

    int updateByPrimaryKey(ApartmentFloor record);

    int addRoomNumsById(ApartmentFloorDTO dto);

    int decreaseRoomNumsById(ApartmentFloorDTO dto);
}